<?php
require_once('wurfl_config.xml');
require_once(WURFL_CLASS_FILE);

$wurflObj = new wurfl_class();

$ua = $_SERVER['HTTP_USER_AGENT'];

$wurflObj->GetDeviceCapabilitiesFromAgent($ua);

if ( $wurflObj->getDeviceCapability('is_wireless_device') ) {
echo 'El UA:'.$ua.'<br /> Es dispositivo movil';
} else {
echo 'El UA:'.$ua.'<br /> No es dispositivo movil';
}
?>

